
/*渲染首页婚礼策划*/
myAjax("xhwed.php/HomePage/plan", function(data) {
	var data = JSON.parse(data);
	var html = template('hlchJs', data.result);
	document.getElementById('hlchwrap').innerHTML = html;
	
	/*注册点击时间管家推荐的点击事件*/
	$(".hot-list li").hover(function() {
	$(this).children(".hot-info").show();
	$(this).siblings().children(".hot-info").hide();
   });
   //console.log(data);
});
/*渲染婚纱摄影*/
myAjax("xhwed.php/HomePage/photography", function(data) {
	var data = JSON.parse(data);
	var html = template('hssyJs', data);
	document.getElementById('hssywrap').innerHTML = html;
	//console.log(data);
});
/*渲染酒店预订*/
myAjax("xhwed.php/HomePage/rummery", function(data) {
	var data = JSON.parse(data);
	var html = template('jdydJs', data);
	document.getElementById('jdydwrap').innerHTML = html;
	$(".home-jdyd .mod-intro").each(function(){
		if($(this).text().length>29)
		{
		$(this).text($(this).text().substr(0,29)+"...");
		}
	});
	//console.log(data);
});

/*渲染蜜月旅行*/
myAjax("xhwed.php/HomePage/honeymoon", function(data) {
	var data = JSON.parse(data);
	var html = template('mylxJs', data);
	document.getElementById('mylxwrap').innerHTML = html;
});

/*渲染新娘日志*/
myAjax("xhwed.php/HomePage/journal", function(data) {
	var data = JSON.parse(data);
	var html = template('xlrzJs', data);
	document.getElementById('xlrzwrap').innerHTML = html;
	//console.log(data);
});
